﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="passwd.aspx.cs" Inherits="Admin_passwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body class="PassBody">
    <form id="form1" runat="server">
    <div class="PassDiv">
        <div class="oldPass"><span>旧密码</span><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
            <asp:CustomValidator ID="CustomValidator1" runat="server" 
                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="旧密码不正确" 
                onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
        </div>
        <div class="newPass"><span>新密码</span><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="TextBox2" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
        </div>
        <div class="confirmPass"><span>确认密码</span><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="TextBox2" ControlToValidate="TextBox3" Display="Dynamic" 
                ErrorMessage="两次密码不一致" SetFocusOnError="True"></asp:CompareValidator>
        </div>        
        <div class="PassBtn">
            <asp:Button ID="Button1" runat="server" Text="提交" onclick="Button1_Click" />
        </div>
    </div>
    </form>
</body>
</html>
